package huanzhao.erp.domain.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
@TableName(value ="notification")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Notification implements Serializable {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 接收人id
     */
    @TableField(value = "recipient_id")
    private Long recipientId;

    /**
     * 通知内容id
     */
    @TableField(value = "core_info_id")
    private Long coreInfoId;

    /**
     * 是否已读
     */
    @TableField(value = "read")
    private Boolean read;

    /**
     * 是否已推送
     */
    @TableField(value = "pushed")
    private Boolean pushed;

    @Serial
    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}